import {
  AfterContentInit, AfterViewChecked, AfterViewInit, Component, OnChanges, OnDestroy,
  OnInit
} from "@angular/core";
import {ActivatedRoute, Router} from "@angular/router";

declare var $;

@Component({
  selector: 'app-admin',
  templateUrl: './admin.component.html'
})
export class AdminComponent implements OnInit, OnDestroy,AfterViewInit,AfterContentInit,AfterViewChecked,OnChanges{

  constructor(
    private router: Router,
    private route: ActivatedRoute
  ) {

  }

  ngOnInit() {
    const neg = $('.main-header').outerHeight() + $('.main-footer').outerHeight();
    $('.content-wrapper').css('min-height', window.innerHeight - neg + 'px');
  }
  ngOnDestroy() {
    $('.control-sidebar').removeClass('control-sidebar-open');
    $('body').removeClass('control-sidebar-open');
  }
  ngAfterViewInit() {

  }
  ngAfterContentInit() {
  }
  ngAfterViewChecked() {
  }
  ngOnChanges() {

  }

}
